package com.lottery.common.dao;

import com.lottery.common.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lottery.common.model.Permissions;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2019-09-23
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    public List<Permission> getPermissionByRole(@Param("rolerId") Integer roleId);

    public List<String> getPermissionNameByRole(@Param("rolerId") Integer roleId);

    List<Permissions> getSelectedPermissionByRole(@Param("id") Integer roleId);
}
